package com.lei.wiki.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Lei Tao
 */
@RestController
public class TestController {

    @GetMapping("hello")
    public String hello() {
        return "hello world";
    }

    @PostMapping("print")
    public String print(String name) {
        return "response:" + name;
    }
}
